package net.a6polo.a6poloweibo.util;

import android.content.Context;
import android.content.SharedPreferences;

import com.weibo.sdk.android.Oauth2AccessToken;

public class WeiboUtil {
	
	public static Oauth2AccessToken getToken(Context ctx) {
		SharedPreferences sp = ctx.getSharedPreferences("token", Context.MODE_PRIVATE);
		String token = sp.getString("access_token", "none");
		String expires_in = sp.getString("expires_in", "none");
		Oauth2AccessToken accessToken = new Oauth2AccessToken(token, expires_in);
		return accessToken;
	}
	
	

}
